import Cookies from 'js-cookie'

const TokenKey = 'js-Token-yos'
const TokenDef = 'Token'

export function getToken() {
  return Cookies.get(TokenDef)
}

export function getJsToken() {
  return Cookies.get(TokenKey)
}

export function setJsToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  Cookies.remove(TokenDef)
  return Cookies.remove(TokenKey)
}

export function removejsToken() {
  return Cookies.remove(TokenKey)
}

export function removeCaptcha() {
  Cookies.remove('Captcha')
  return
}
